//index.js
//获取应用实例
const app = getApp()

Page({
  data: {
    movies:[
      { url:'/img/main/feature01.jpg'},
      // { url: '/img/main/feature02.jpg' },
      { url: '/img/main/feature03.jpg' },
      // { url: '/img/main/feature04.jpg' },
      // { url: '/img/main/feature06.jpg' },
      { url: '/img/main/feature07.jpg' }

    ]
  },
  //事件处理函数
  goDetail: function(e) {
    var index = e.target.dataset.index;
    
    console.log(index);
    
  
    wx.navigateTo({
      url: "detail?id=" + index
    })
  },
 
  onShareAppMessage: function () {
    
  },
 
})
